#!/bin/sh
# - nr_task
# - duration

. $LKP_SRC/lib/tests/cassandra.sh
. $LKP_SRC/lib/reproduce-log.sh

setup_java_home

cd "$BENCHMARK_ROOT/linkbench" || die "no $BENCHMARK_ROOT/linkbench"

duration=${duration%%s}

./bin/linkbench 2>&1 \
-c config/MyConfig.properties -D host=localhost -D user=linkbench -D password=mypassword -D requesters="$nr_task" \
-c config/LinkConfigMysql.properties -D maxtime="$duration" \
-r
